/**
 * zbestpayment.com Inc.
 * Copyright (c) 2004-2017 All Rights Reserved.
 */
package com.zbest.zpay.masterdata.model;

import org.apache.commons.lang3.StringUtils;

/**
 * 
 *
 * @author Administrator
 * @version $Id: PayType.java, v 0.1 2017-4-15 下午11:56:28 Administrator Exp $
 */
public enum TransType {

    /**充值*/
    DEPOSIT,

    /**退款*/
    REFUND,

    /**汇率查询*/
    RATEQUERY,

    /**充值流水查询*/
    DEPOSITQUERY,

    /**退款流水查询*/
    REFUNDQUERY,

    /**业务对账文件下载*/
    BIZFILEDOWNLOAD,

    ;

    public TransType get(String transTypeName) {
        for (TransType tt : values()) {
            if (StringUtils.equals(tt.name(), transTypeName)) {
                return tt;
            }
        }
        return null;
    }

}
